<template>
    <div></div>
</template> 
<script lang='ts'>
import { defineComponent } from 'vue'
import { useRoute, useRouter } from 'vue-router'
export default defineComponent({
    name: 'Refresh',
    setup() {
        const router = useRouter()
        const route = useRoute()
        router.push({ name: route.query.toName as string || 'login' })
    }
})
</script>